Determining conditional type in IDE in If statement